<?
class GARDEN
{
    function get_contact_list($user_id, $type = '@all')
    {
        $db = new DB_GEAR();

        //set query
        $aQuery['Type'] = 'select';
        $aQuery['Column'] = array('*');
        $aQuery['Table'] = 'garden_login_tbl';
        $aQuery['Where'] = 'user_id ="'.$user_id.'" and session = "'.$g_session.'" and expire > NOW()';
        $db->set_query($aQuery);

        preDump($db->get_query());

        $result = $db->send_query(1);

        if($result['cnt'] == 1)
        {
        	//echo 'OK';
            return true;
        }
        else
        {
        	//echo 'NG';
            return false;
        }
    }
}

?>